#include "desktop.h"
#include <QtGui/QApplication>
#include <QtGui>
int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	//desktop w;
	//w.show();

	QUrl url(QString("www.baidu.com"));
	bool is_open = QDesktopServices::openUrl(url);

	QString path = QString("file:///C:\\Windows\\System32\\notepad.exe") ;//+ local_path;
	is_open = QDesktopServices::openUrl(QUrl(path, QUrl::TolerantMode));

	QString desktop_path = QDesktopServices::storageLocation(QDesktopServices::DesktopLocation);
	QString document_path = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation);
	QString home_path = QDesktopServices::storageLocation(QDesktopServices::HomeLocation);
	QString application_path = QDesktopServices::storageLocation(QDesktopServices::ApplicationsLocation);
	QString temp_path = QDesktopServices::storageLocation(QDesktopServices::TempLocation);

	QString local_path = QString("C://");
	bool is_start = QProcess::startDetached("explorer " + local_path);

	return a.exec();
}
